package com.czwj.entities;

import java.util.Date;
import java.util.List;

public class ForumReply{
	private Integer id;
	
	private Integer postid;
	
	private Integer parentid;
	
	private String content;
	
	private Integer createrid;
	
	private Date createdate;
	
	private String createip;
	
	private UserInfo user;
	
	private ForumReply parent;
	
	private List<Attachment> attachments;
	
	/**
	 * 创建一个新的实例 ForumReply.
	 *
	 */
	public ForumReply(){
		super();
		// TODO Auto-generated constructor stub
	}
	
	/**
	 * 创建一个新的实例 ForumReply.
	 *
	 * @param id
	 * @param postid
	 * @param content
	 * @param createrid
	 * @param createdate
	 * @param createip
	 */
	public ForumReply(Integer id,Integer postid,Integer parentid,String content,Integer createrid,Date createdate,
			String createip){
		super();
		this.id = id;
		this.postid = postid;
		this.parentid = parentid;
		this.content = content;
		this.createrid = createrid;
		this.createdate = createdate;
		this.createip = createip;
	}
	
	public UserInfo getUser(){
		return user;
	}
	
	public void setUser(UserInfo user){
		this.user = user;
	}
	
	public ForumReply getParent(){
		return parent;
	}
	
	public void setParent(ForumReply parent){
		this.parent = parent;
	}
	
	public List<Attachment> getAttachments(){
		return attachments;
	}
	
	public void setAttachments(List<Attachment> attachments){
		this.attachments = attachments;
	}
	
	public Integer getId(){
		return id;
	}
	
	public void setId(Integer id){
		this.id = id;
	}
	
	public Integer getPostid(){
		return postid;
	}
	
	public void setPostid(Integer postid){
		this.postid = postid;
	}
	
	public Integer getParentid(){
		return parentid;
	}
	
	public void setParentid(Integer parentid){
		this.parentid = parentid;
	}
	
	public String getContent(){
		return content;
	}
	
	public void setContent(String content){
		this.content = content == null?null:content.trim();
	}
	
	public Integer getCreaterid(){
		return createrid;
	}
	
	public void setCreaterid(Integer createrid){
		this.createrid = createrid;
	}
	
	public Date getCreatedate(){
		return createdate;
	}
	
	public void setCreatedate(Date createdate){
		this.createdate = createdate;
	}
	
	public String getCreateip(){
		return createip;
	}
	
	public void setCreateip(String createip){
		this.createip = createip == null?null:createip.trim();
	}
}
